<form action="pages/daoDepartamento.php" method="post">
    <input name="acao" type="hidden" value="1" />
    <table width="1024" valign="top" border="0" align="center">
        <tr>
            <td height="720" valign="top"><table width="1024" border="0">

                    <tr>
                        <td width="187" height="43" align="right">Nome*</td>
                        <td width="827" ><label>
                                <input name="nome" type="text" width="400" />
                            </label></td>
                    </tr>

                    <tr>
                        <td height="43" align="right">Sigla*</td>
                        <td ><label>
                                <input name="sigla" type="text" maxlength="11" />
                            </label>
                            
                        </td>
                    </tr>

                    <tr>
                        <td height="43" align="right">Departamento Superior</td>
                        <td >
                            <select name="departamentoSup" >
                                <option  value="null">

                                 </option>
                                <?php
                                require_once '../dao/DepartamentoDaoImp.class.php';
                                $depDao = new DepartamentoDaoImp;
                                $result = $depDao->buscarTodos();

                                foreach ($result as $row) {
                                ?>
                                    <option value="<?php echo "{$row['idDepartamento']}" ?>">
                                    <?php
                                    echo $row['nome'];
                                    ?>
                                </option>
                                <?php } ?>

                            </select>
                        </td>
                        <td >
                            <input type="submit" value="Cadastrar" />
                            <input type="reset" value="Resetar"/>
                        </td>
                    </tr>




                </table></td>
        </tr>
    </table>
</form>